package com.cloud.shopping.search.service;

import com.cloud.shopping.search.model.SkuEs;

import java.util.Map;

/**
 * @author John.Zhang
 * @version Id: SkuSearchService, v 0.1 2020/12/31 10:56 ZhiYong Exp $
 */
public interface SkuSearchService {

    /**
     * 搜索数据
     *
     * @param searchMap searchMap
     * @return Map
     */
    Map<String, Object> search(Map<String, Object> searchMap);

    /**
     * 增加索引
     *
     * @param skuEs skuEs
     */
    void add(SkuEs skuEs);

    /**
     * 删除索引
     *
     * @param id id
     */
    void delete(String id);

}
